﻿@model NextInventory.Model.User.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

@using (Html.BeginForm("ChangePassword", "User", FormMethod.Post))
{
    @Html.ValidationSummary(true)

    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
        <tr>
            <th>@Html.LabelFor(model => model.OldPassword, new { valign = "top" })</th>
            <td>@Html.PasswordFor(model => model.OldPassword, new { @class = "inp-form" })
                @Html.ValidationMessageFor(model => model.OldPassword)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(model => model.NewPassword, new { valign = "top" })</th>
            <td>@Html.PasswordFor(model => model.NewPassword, new { @class = "inp-form" })
                @Html.ValidationMessageFor(model => model.NewPassword)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(model => model.ConfirmPassword, new { valign = "top" })</th>
            <td>@Html.PasswordFor(model => model.ConfirmPassword, new { @class = "inp-form" })
                @Html.ValidationMessageFor(model => model.ConfirmPassword)</td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type="submit" value="" class="form-submit" />
                <input type="reset" value="" class="form-reset" />
            </td>
        </tr>
    </table>
}